package com.person.monitor;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;

public class ProcessListActivity extends AppCompatActivity{

    ProcessListAdapter processListAdapter;

    ListView listView;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_process_list);

        processListAdapter = new ProcessListAdapter(this);

        listView = findViewById(R.id.list_view);

        listView.setAdapter(processListAdapter);

        processListAdapter.setProcessList(MonitorServer.processList);

    }

}
